package com.ys.enume.business;

public class TpBoutiqueEnum {
	
	public enum Type {
		NONE("无", 0), NEW("新品", 1), BAO_PIN("爆品", 2),;
		public String name;
		public Integer value;

		private Type(String name, Integer value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(int value) {
			for (Type e : Type.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}
	
	/*
	 * 是否生效
	 */
	public enum BoutiqueIsEffect {
		NO("否", 0), YES("是", 1);
		public String name;
		public Integer value;

		private BoutiqueIsEffect(String name, Integer value) {
			this.name = name;
			this.value = value;
		}
	}
	
	/*
	 * 权限类型
	 */
	public enum AuthType {
		ALL("全部权限", 0), PART("指定权限", 1);
		public String name;
		public Integer value;

		private AuthType(String name, Integer value) {
			this.name = name;
			this.value = value;
		}
	}
	
	
}
